{extend name="Layout/datagrid" /}
{block name="content_header"}
<h1>
    登录日志
    <small>advanced tables</small>
</h1>
<ol class="breadcrumb">
    <li><a href="#"><i class="fa fa-dashboard"></i> 首页</a></li>
    <li><a href="#">安全</a></li>
    <li class="active">登录日志</li>
</ol>
{/block}
{block name="content"}
<div class="box">
    <div class="box-header">
        <div class="row">
            <div class="col-md-5">
                <button type="button" class="btn btn-success navbar-btn xsui-btn-refresh">刷新</button>
            </div>
            <div class="col-md-7">
                <form class="navbar-form navbar-right">
                    <div class="form-group">
                        <input type="text" name="word" class="form-control" placeholder="关键词..." title="用户名" value="{$search['word']}">
                    </div>
                    <button type="submit" class="btn btn-default">搜索</button>
                </form>
            </div>
        </div>
    </div>
    <!-- /.box-header -->
    <div class="box-body">
        <table class="xsui-datagrid table table-condensed table-bordered table-striped table-hover">
            <thead>
                <tr>
                    <th>#</th>
                    <th>用户名</th>
                    <th>是否登入</th>
                    <th>登录结果</th>
                    <th>登录IP</th>
                    <th>登录时间</th>
                    <th>备注</th>
                </tr>
            </thead>
            <tbody>
                {foreach name="list" item="vo"}
                <tr data-key="{$vo.id}">
                    <td title="{$vo.id}"></td>
                    <td>{$vo.user_name}</td>
                    <td>{$vo.is_login}</td>
                    <td>{$vo.status}</td>
                    <td>{$vo.login_ip}</td>
                    <td>{$vo.login_time}</td>
                    <td>{$vo.remark}</td>
                </tr>
                {/foreach}
            </tbody>
        </table>
        {$page}
    </div>
    <!-- /.box-body -->
</div>
<!-- /.box -->
{/block}